package com.ymttest.database.sqlwapper.shenqisettlement;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.shenqisettlement.SubDistributorOfflineMonthBill;

public class SubDistributorOfflineMonthBillWrapper {
	
	SqlManager manager;

	public SubDistributorOfflineMonthBillWrapper() {
		manager = new SqlManager("shenqisettlement");
	}

	@SuppressWarnings("unchecked")
	public SubDistributorOfflineMonthBill selectByPrimaryKey(Long id) {

		SubDistributorOfflineMonthBill subDistributorOfflineMonthBill = null;
		List<SubDistributorOfflineMonthBill> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.shenqisettlement.SubDistributorOfflineMonthBillMapper.selectByPrimaryKey",
						id);
		manager.commit();

		if (result.size() > 0) {
			subDistributorOfflineMonthBill = result.get(0);
		}

		return subDistributorOfflineMonthBill;
	}
	
	public static void main(String[] args) {
		
		SubDistributorOfflineMonthBillWrapper test = new SubDistributorOfflineMonthBillWrapper();

		System.out.println(test.selectByPrimaryKey(1L));
	}
}
